#pragma once

#include "MatAlgorithm.h"
#include "SSVEP_GUI.h"
#include "MA_IIR_Filter.h"
class Matlab_SSVEP :	public MatAlgorithm
{
public:
	Matlab_SSVEP(void);
	void PutSample(SampleStruct *pData);

	void RunSecWin(void);
	void RunMainWin(void);
	
	void SendConfiguration(void)
	{SendPeriods();}
public:
	~Matlab_SSVEP(void);
private:
	void SetPeriods(int *pPeriods);
	void SendPeriods();
	int Periods[4];
	bool	Ref[8],Sig[8];
	int		RefTot,SigTot;
	MA_IIR_Filter	Filter;
};

